package server;


public abstract class Cibo {

	/**
	 * @uml.property  name="energiaMax"
	 */
	private int energiaMax;

	/**
	 * Getter of the property <tt>energiaMax</tt>
	 * @return  Returns the energiaMax.
	 * @uml.property  name="energiaMax"
	 */
	public int getEnergiaMax() {
		return energiaMax;
	}

	/**
	 * Setter of the property <tt>energiaMax</tt>
	 * @param energiaMax  The energiaMax to set.
	 * @uml.property  name="energiaMax"
	 */
	public void setEnergiaMax(int energiaMax) {
		this.energiaMax = energiaMax;
	}

	/**
	 * @uml.property  name="energia"
	 */
	private int energia;

	/**
	 * Getter of the property <tt>energia</tt>
	 * @return  Returns the energia.
	 * @uml.property  name="energia"
	 */
	public int getEnergia() {
		return energia;
	}

	/**
	 * Setter of the property <tt>energia</tt>
	 * @param energia  The energia to set.
	 * @uml.property  name="energia"
	 */
	public void setEnergia(int energia) {
		this.energia = energia;
	}

		
		/**
		 */
		public int aggiorna(){
			return 0;
		}

			
			/**
			 */
			public int consuma(){
				return 0;
			}

			/** 
			 * @uml.property name="casella"
			 * @uml.associationEnd multiplicity="(1 1)" inverse="cibo:server.Casella"
			 * @uml.association name="contiene"
			 */
			private Casella casella = new server.Casella();

			/** 
			 * Getter of the property <tt>casella</tt>
			 * @return  Returns the casella.
			 * @uml.property  name="casella"
			 */
			public Casella getCasella() {
				return casella;
			}

			/** 
			 * Setter of the property <tt>casella</tt>
			 * @param casella  The casella to set.
			 * @uml.property  name="casella"
			 */
			public void setCasella(Casella casella) {
				this.casella = casella;
			}

}
